package emploeer;

//父类,雇员类
public abstract class Person {

    //共有属性
    String name;
    int age;
    char gender;
    double salary;

    Person(String name, int age, char gender, double salary) {
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.salary = salary;
    }




    //共有方法
    void startWork() {
        System.out.println(name+"上班打卡");
    }

    void endWork() {
        System.out.println(name+"下班打卡");
    }

    abstract void finshWork();//抽象方法

}
